// 权限
import request from "@/utils/https/requests";
// 列表
export function rightsList(data: any) {
  return request({
    url: "/rights/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddRights(data: any) {
  return request({
    url: "/rights/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModRights(data: any) {
  return request({
    url: `/rights/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function rightsDetail(id: string) {
  return request({
    url: `/rights/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteRights(id: string) {
  return request({
    url: `/rights/postDelete/${id}`,
    method: "post",
  });
}
